import { apiConstants,loadModalInfo} from '@/js/utils'
import footerMenu from '@/components/mainPage/footer'

new Vue({
  el: "#app",
  data() {
    return {
      companyList:[],
      done:false
    }
  },
  created() {
    this.getCompanyList();
  },
  methods: {
    getCompanyList(){
      let _this = this;
      _this.$ajax(apiConstants.company_getAgentCompanyList, {
        data: {},
        success: function (data) {
          _this.done = true;
          _this.companyList = data || [];
        }
      })
    },
    editCompany(id,name){
      location.href = "/editCompany?companyId="+id+"&companyName="+name;
    },
  },
  components: {footerMenu}
});
